<template>
  <div class="tk">
    <div class="tk-left">
      <div class="tk-1">医疗器械行业采供销利器</div>
      <div class="tk-2">
        通过对海量标讯中的医疗器械（名称、品牌、型号、单位、单价、数量等）信息的自动挖掘，经过人工审核，构建全面准确的「医院-经销商-生产厂商」的医疗器械采供销关系网。在市场情报、经销商&生产商拓展、招投标支持等方面，提供精准的信息和决策支持。
      </div>
      <div class="tk-3">
        <div class="tk-4">
          <div class="tk-5">
            <img src="../../../../assets/img/doc-1.png" alt="" />
          </div>
          <div class="tk-6">20万+医疗器械经销商高效拓展渠道</div>
        </div>
        <div class="tk-4" style="margin-left: 20px">
          <div class="tk-5">
            <img src="../../../../assets/img/doc-2.png" alt="" />
          </div>
          <div class="tk-6">20万+医疗器械经销商高效拓展渠道</div>
        </div>
        <div class="tk-4" style="margin-left: 20px">
          <div class="tk-5">
            <img src="../../../../assets/img/doc-3.png" alt="" />
          </div>
          <div class="tk-6">20万+医疗器械经销商高效拓展渠道</div>
        </div>
      </div>
      <div class="tk-7 bg-[#FCE2E0]">
        <span>联系电话：158-5557-3332</span>
      </div>
    </div>
    <div class="tk-right">
      <div style="margin: 0 40px">
        <div class="tk-1">更多医疗版详情</div>
        <div class="tk-2" style="text-align: center; height: 14px">
          请完善基本信息，我们会尽快联系您
        </div>
        <div class="name">
          <img src="../../../../assets/img/doc-4.png" alt="" />
          <el-input v-model="form.name" placeholder="请输入名称" />
        </div>
        <div class="name">
          <img src="../../../../assets/img/doc-5.png" alt="" />
          <el-input v-model="form.phone" placeholder="请输入手机号" />
        </div>
        <div class="name">
          <img src="../../../../assets/img/doc-6.png" alt="" />
          <el-input v-model="form.company_name" placeholder="请输入公司名称" />
        </div>
        <div class="name">
          <img src="../../../../assets/img/doc-7.png" alt="" />
          <el-input v-model="form.position" placeholder="请输入职位" />
        </div>
        <div class="tk-8 cursor-pointer" @click="submit">
          <span>立即提交</span>
        </div>
      </div>
    </div>
  </div>
</template>
  
  <script lang="ts" setup>
import { message, Modal } from "ant-design-vue";
import { ref } from "vue";
import { Hospitaladd_contacts } from "../../../../Api/work";

const form = ref({
  phone: "",
  name: "",
  company_name: "",
  position: "",
});

const submit = async () => {
  const res = await Hospitaladd_contacts({...form.value});
  if (res?.data?.code == 1) {
    Modal.info({
    title: '温馨提示',
    content: "恭喜留资成功，客户经理将在工作日24h内联系您，谢谢",
  });
  form.value = {
  phone: "",
  name: "",
  company_name: "",
  position: "",
}
  } else {
    message.error(res?.data?.msg);
  }
};
</script>
  
  <style lang="scss" scoped>
.tk {
  width: 100%;
  // height: 750px;
  // overflow-y: scroll !important;
  background-color: #fff;
  display: flex;
}

.tk-left {
  width: 450px;
  margin: 50px;
}

.tk-right {
  width: 450px;
  border-left: 1px solid #dddddd;
  margin: 50px 0 0 0;
}

.tk-1 {
  height: 22px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  font-size: 22px;
  color: #333333;
  text-align: center;
  margin-bottom: 20px;
  // margin-top: 50px;
  // line-height: 34px;
}

.tk-2 {
  height: 110px;
  line-height: 28px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  font-size: 14px;
  color: #333333;
  text-align: left;

  // line-height: 34px;
}

.tk-3 {
  margin-top: 50px;
  display: flex;
  // line-height: 34px;
}

.tk-4 {
  width: 120px;
  height: 190px;
  border: 1px solid #dddddd;

  padding: 25px 13px;
}

.tk-5 {
  width: 70px;
  height: 70px;
  margin-left: 12px;

  // padding:0 12px;
  img {
    width: 100%;
    height: 100%;
  }
}

.tk-6 {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.tk-7 {
  // width: 400px;
  height: 44px;
  border-radius: 4px;
  line-height: 44px;
  text-align: center;
  margin-top: 60px;
  font-weight: 400;
  font-family: Source Han Sans CN;
}

:deep() {
  .sbmc {
    width: 160px;
    white-space: nowrap;
    /* 不换行 */
    overflow: hidden;
    /* 溢出部分隐藏 */
    text-overflow: ellipsis;
    /* 显示省略号 */
  }
}

.qx {
  width: 40px;
  height: 40px;
  float: right;

  img {
    width: 100%;
    height: 100%;
  }
}

.name {
  width: 100%;
  height: 40px;
  display: flex;
  margin-top: 44px;

  img {
    width: 14px;
    height: 14px;
    margin-top: 13px;
  }

  border-bottom: 1px solid #dddddd;
}

.tk-8 {
  // width: 420px;
  height: 44px;
  background: #f43107;
  border-radius: 4px;
  margin-top: 60px;
  text-align: center;
  line-height: 44px;
  color: #fff;
}

.statistic6 {
  width: calc(100% - 200px);
  // background: #FFFFFF;
  border-radius: 8px;
  // margin-top: ;
  margin: 0 auto;
  padding: 20px 0;
}

.checkeds {
  background-color: #4d94f6;
  text-align: center;
  color: #ffffff;
  padding: 0 10px;
  line-height: 32px;
  font-size: calc(100vw * 16 / 1920);
}

// .bnt :hover{
//   background-color: #4D94F6;
// }
.xq {
  position: absolute;
  right: 0;
}

.paih {
  position: absolute;
  right: 108px;
}

.rm-bnt .btn {
  // width:%;
  height: 32px;
  display: flex;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 20px !important;
  // font-size:calc(100vw * 24 / 1920);
}
// .el-main{
//   height: 0;
// }
:deep() {
  .sbmc {
    width: 160px;
    white-space: nowrap;
    /* 不换行 */
    overflow: hidden;
    /* 溢出部分隐藏 */
    text-overflow: ellipsis;
    /* 显示省略号 */
  }

  .el-input__wrapper {
    border: none !important;
    box-shadow: none !important;
  }
}
</style>
  